
#include <iostream>
using namespace std;

struct BD {
	int m_year;
	int m_month;
	int m_day;
};

struct Student {
	int m_age;
	string m_name;
	BD m_bday;
};

class Human {
	public:
		Human( int age=0, const char* name="wumnig" ) : m_name(name), m_age(age) {
		
		}
		int m_age;
		string m_name;
};

int main( void ) {
	int a{ 123 }; // = 123;
	cout << "a = " << a << endl;

	int b[]{ 123, 456, 789 };
	for( int i = 0; i < 3; ++i ){
		cout << b[i] << endl;
	}

	Student s = {22, "zhangfei", {1997, 2, 5}};
	cout << s.m_name << ' ' << s.m_age << ' ' << s.m_bday.m_year << endl;

	Human h( 20, "zhangyun" );
	cout << "name : " << h.m_name << ", age : " << h.m_age << endl;

	return 0;
}

